package bean;

public class Borrowed {
    private String book_id;
    private String user_id;
    private String borrow_date;

    private String return_date;

    private Book book;   //图书信息
    private User user;    //用户信息；

    public Borrowed(){}

    public Borrowed(String book_id,String user_id, String borrow_date,String return_date){
        this.book_id = book_id;
        this.user_id = user_id;
        this.borrow_date = borrow_date;
        this.return_date =return_date;
    }

    public Borrowed(String book_id,String user_id, String borrow_id,String return_date,Book book,User user){
        this.book_id = book_id;
        this.user_id = user_id;
        this.borrow_date = borrow_id;
        this.return_date =return_date;
        this.book = book;
        this.user = user;
    }

    public Book getBook() {
        return book;
    }
    public void setBook(Book book) {
        this.book = book;
    }

    public User getUser() {
        return user;
    }
    public void setUser(User user) {
        this.user = user;
    }

    public String getBook_id() {
        return book_id;
    }

    public void setBook_id(String book_id) {
        this.book_id = book_id;
    }

    public String getUser_id() {
        return user_id;
    }

    public void setUser_id(String user_id) {
        this.user_id = user_id;
    }


    public String getBorrow_date() {
        return borrow_date;
    }

    public void setBorrow_date(String borrow_date) {
        this.borrow_date = borrow_date;
    }

    public String getReturn_date() {
        return return_date;
    }

    public void setReturn_date(String return_date) {
        this.return_date = return_date;
    }

    @Override
    public String toString() {
        return "Borrowed{" +
                "book_id='" + book_id + '\'' +
                ", user_id='" + user_id + '\'' +
                ", borrow_id='" + borrow_date + '\'' +
                ", return_date='" + return_date + '\'' +
                ", book=" + book +
                ", user=" + user +
                '}';
    }
}
